<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script type="text/javascript" src="./jquery1.8.2.js"></script>
    <script type="text/javascript" src="./radioChecked.js"></script>
</head>
<body>
    <!-- <input type="radio" name="test" class="testch" value="a" data-check="1">
    <input type="radio" name="test" class="testch" value="b" data-check="1">

    <HR>
    <input type="radio" name="test1" class="testch" value="c" data-check="1">
    <input type="radio" name="test1" class="testch" value="d" data-check="1">
    <input type="radio" name="test1" class="testch" value="e" data-check="1"> -->
    <input type="radio" name="test" class="testch" value="a">
    <input type="radio" name="test" class="testch" value="b">

    <HR>
    <input type="radio" name="test1" class="testch" value="c">
    <input type="radio" name="test1" class="testch" value="d">
    <input type="radio" name="test1" class="testch" value="e">
</body>
<script>

$(function(){
    //调用init方法
    $('.testch').click(function(){
        $(this).radioChecked().init();
    });
    //当页面加载完成后,先设置属性  data-check="1"
    $('.testch').radioChecked().setDataAttr()
});
</script>
</html>